package umich.max.geolocation.experiments.stacking;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.Vector;

import weka.core.Instance;
import weka.core.SelectedTag;
import weka.classifiers.Classifier;
import weka.classifiers.RandomizableMultipleClassifiersCombiner;
import weka.classifiers.meta.Vote;

public class Stacking {

	

	public void run() {
		Classifier[] classifiers = loadClassifiers();
		List<Instance> instances = getTestingData();
		Vote v = new Vote();
		v.setCombinationRule(new SelectedTag(Vote.MAJORITY_VOTING_RULE, Vote.TAGS_RULES));
		v.setClassifiers(classifiers);
		for (Instance instance : instances){
			try {
				double result = v.classifyInstance(instance);
				System.out.println(result   );

			} catch (Exception e) {
				e.printStackTrace();
			}
		}

	}

	public Classifier[] loadClassifiers() {
		return null;
	}

	public List<Instance> getTestingData() {
		return null;
	}
}
